def getCount(str):
    result = {}
    for i in str:
        if i.isdigit() or i.isalpha():
            result[i] = result.get(i,0)+1
    return result

user = input("请输入字符串\n")

print(getCount(user))